home *** CD-ROM | disk | FTP | other *** search
- Path: info.uah.edu!oreo!gbacon
- From: gbacon@oreo (Greg Bacon)
- Newsgroups: comp.lang.c
- Subject: Re: Unfamiliar DOS functions, help please
- Date: 6 Feb 1996 21:06:08 GMT
- Organization: The University of Alabama in Huntsville
- Message-ID: <4f8fs0$nnk@info.uah.edu>
- References: <duffyfr-0502962100040001@134.174.41.144>
- Reply-To: gbacon@CS.UAH.Edu
- NNTP-Posting-Host: oreo.aspire.cs.uah.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Frank H. Duffy, MD (duffyfr@a1.tch.harvard.edu) wrote:
- : Am attempting to port software coded in Microsoft C for DOS
- : over to Unix (Linux using gcc). Don't have access to needed
- : manuals.
-
- : The following code interrupts a data loop with ESC key:
-
- : if(kbhit()) {
- : if((Key = getch()) == 0)
- : Key = getch() + 0x100;
- : if(Key == 27)
- : return;
- : }
-
- : Is there a simple way to emulate kbhit in gcc in unix environment?
- : Is there a simple way to unblock read of stdin in unix?
- :
- : Thanks for your help. Please respond via e-mail (address below).
-
- : Frank
- : ----------------------------------------------------------------
- : Frank H. Duffy, MD e-mail: duffyfr@a1.tch.harvard.edu
- : Neurlogy phone: (617)-355-7919
- : Childrens Hospital & fax: (617)-355-7230
- : Harvard Medical School ham radio: k1moq
- : 300 Longwood Ave
- : Boston, MA 02115 USA
-
- [loud Homer-esque 'doh!'... sorry about that last one]
-
- As the smoke clears, your answer manifests itself in the form of six
- letters: RTFFAQ
-
- Greg
- --
- Greg Bacon <gbacon@cs.uah.edu>
- University of Alabama in Huntsville
- CS Department Systems Support Team
-